Query Profile Picture List iPart

With the Query Profile Picture List iPart, you can display a group of profile pictures based on the results of an IQA query. For example, you can write queries to display the profile pictures of everyone who has registered for an event, made a donation, or ordered a particular product. Configure the list to display horizontally or vertically, and to display small, medium, or large profile pictures. You also have the option to make the profile picture a live link that opens a URL of your choosing, such as the member profile page.

Guidelines for working with the Query Profile Picture List

■    The profile pictures displayed in the iPart are based on iMIS user IDs. When creating the query for this iPart in IQA, you must select a property that returns an iMIS user ID on the Display tab. Give this property an Alias of key_Id (the Alias is case sensitive).

■    When you add Display columns to the query in IQA, they become available within the iPart as Data columns to filter on.

■    You can dynamically filter the query results displayed in the iPart based on the value of another iPart’s URL parameter. For example, you can set up your donation page to display the profile pictures of people that have donated to a particular cause (called a distribution in iMIS). The Donation Creator iPart uses the URL parameter itemid to determine which distribution the donation should go towards. If you add your iPart to the same content record as the Donation Creator, then you can set up the Query Profile Picture List to look at the value of itemid to determine which profile pictures to display. You just have to make sure that your query includes the CsActivity.Product Code property, so that you can select it as a Data column on the iPart’s configuration page. Once selected, enter itemid for the Query string parameter, so that the iPart knows to filter the results based on that URL parameter’s value.

Example: Display other users who have purchased a product

In this example, the Query Profile Picture List iPart is set up to display clickable profile pictures of other users who have bought a particular product. This example uses content installed for the sample Member sample site.

1.  From Content Management > Content designer > Manage content, open the Store > StoreLayouts folder and edit the Item Detail content record.

Note: The Item Detail content record displays product pages in the Member sample site’s Shop. The product displayed is based on the value of the URL parameter iProductCode.

2.  Click add content to find and select the Query Profile Picture List iPart in the Utility folder.

3.  For the List source query, click select to find and select the Orders query located in $/Samples/QueryProfilePictureList.

4.  From the Data column dropdown list, select ProductCode.

5.  For the Query string parameter, enter iProductCode.

6.  For the Click Url, enter MBR/Party.aspx. This redirector web page looks for an ID in the URL parameter and then checks the ID’s party type and the user’s permissions to determine which content record to display. The user’s ID is appended to any URL specified in this field.

7.  Save and Publish the content record.